<?php
function textEditor($editorID, $name, $value, $submit)
{
/*
	$editorID.'checkbox' <- no need to touch this.
	$editorID.'button' <-id of button in case of styling.
*/
	$display ='
	<input id="'.$editorID.'checkbox" type="checkbox" name="toggle" style="display: none;" checked/>
	<textarea id="'.$editorID.'" name="'.$name.'" class="textEditor">'.$value.'</textarea><br />
	<input type="button" id="'.$editorID.'button" class="buttons htmlbtn" rel="'.$editorID.'" value="Edit in &lt;html&gt; Mode"/>
	<input type="submit" id="'.$editorID.'save" class="buttons save" value="'.$submit.'" />
	';
	return $display;
}
?>